<?php

class WebStaticResponse extends WebResponse {
	private $TemplateName;

	public function templateName() {
		return $this->TemplateName;
	}

	protected function setTemplateName($newValue) {
		$this->TemplateName = $newValue;
		return $this;
	}

	function __construct($templateName) {
		$this->setTemplateName($templateName);
	}
	
	function templatesDirectory() {
		return '.';
	}
	
	function renderBody() {
		readfile(
			CPath($this->templatesDirectory(), $this->templateName())
		);
	}
	
	static function makeNew($name) {
		return new WebStaticResponse($name);
	}
}

?>